package com.hcm;

import com.amazonaws.mturk.service.axis.RequesterServiceRaw;
import com.amazonaws.mturk.util.*;
import com.amazonaws.mturk.requester.*;
import com.amazonaws.mturk.service.exception.ServiceException;

public class HCMRequesterService extends RequesterServiceRaw {
	public HCMRequesterService(ClientConfig cc){
		super(cc);
	}
	
	public double getAccountBalance() throws ServiceException {
	    String defaultUnused = null;
	    GetAccountBalanceResult result = super.getAccountBalance(defaultUnused);

	    return result.getAvailableBalance().getAmount().doubleValue();
	  }
}
